package com.yzy.soft.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author yinzhiyuan
 * @since 2018-02-01
 */
public class Special extends Model<Special> {

    private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.UUID)
	private String id;
	private String number;
	private String name;
	private String transflag;
	private String columnone;
	private String columntwo;
private String transclass;

	private String remark;
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@TableField(fill= FieldFill.INSERT)
	private Date create;
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@TableField(fill= FieldFill.INSERT_UPDATE)
	private Date update;
	private String versionid;
	@TableField(value = "userflag")
	private int userflag;
	@TableField(value = "deleteflag")
	@TableLogic
	private int deleteflag;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getTransflag() {
		return transflag;
	}

	public void setTransflag(String transflag) {
		this.transflag = transflag;
	}

	public String getColumnone() {
		return columnone;
	}

	public void setColumnone(String columnone) {
		this.columnone = columnone;
	}

	public String getColumntwo() {
		return columntwo;
	}

	public void setColumntwo(String columntwo) {
		this.columntwo = columntwo;
	}

	public String getTransclass() {
		return transclass;
	}

	public void setTransclass(String transclass) {
		this.transclass = transclass;
	}

	public Date getCreate() {
		return create;
	}

	public void setCreate(Date create) {
		this.create = create;
	}

	public Date getUpdate() {
		return update;
	}

	public void setUpdate(Date update) {
		this.update = update;
	}

	public String getVersionid() {
		return versionid;
	}

	public void setVersionid(String versionid) {
		this.versionid = versionid;
	}

	public int getUserflag() {
		return userflag;
	}

	public void setUserflag(int userflag) {
		this.userflag = userflag;
	}

	public int getDeleteflag() {
		return deleteflag;
	}

	public void setDeleteflag(int deleteflag) {
		this.deleteflag = deleteflag;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Special{" +
			"id=" + id +
			", number=" + number +
			", name=" + name +
			", remark=" + remark +
			", create=" + create +
			", update=" + update +
			", versionid=" + versionid +
			"}";
	}
}
